from random import randint
num = int(input())
count = 0
for i in range(num):
    x = randint(-100,100)
    y = randint(-100,100)
    if -8 <= y <= 5 and -7 <= x <= 5:
        count +=1
print("количество выстрелов:", num)
print("количество попаданий:", count)





